<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="../css/pintuer.css">
    <link rel="stylesheet" href="../css/admin.css">
    <script src="../js/jquery.js"></script>
    <script src="../js/pintuer.js"></script>
</head>
<body>
<form action="adminupdata" method="post" name="form1">
    <div class="panel admin-panel">
        <div class="panel-head"><strong> 快递信息</strong></div>
        <div class="body-content">
            <div class="form-x">
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">账号：</label>
                    </div>
                    <div class="field">
                        <input type="text" maxlength="15" class="input w50" value="{$list.name}" name="name"  size="50" data-validate="required:请输入账号,repeat#password:"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">密码：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" value="" name="password"  size="50" "/>
                    </div>
                </div>
                {if ($list.id != 1)}
                <div class="form-group">
                    <div class="label">
                        <label for="sitename">权限：</label>
                    </div>
                    <div class="field">
                        <select id="type" class="input w50" name="jurisdiction">
                            {if condition="$list.jurisdiction ==0"}
                            <option value="0" selected>无权限</option>
                            <option value="1" >信息审核员</option>
                            <option value="2" >打款员</option>
                            <option value="3" >收款员</option>
                            {/if}
                            {if condition="$list.jurisdiction ==1"}
                            <option value="0" >无权限</option>
                            <option value="1" selected>信息审核员</option>
                            <option value="2" >打款员</option>
                            <option value="3" >收款员</option>
                            {/if}
                            {if condition="$list.jurisdiction ==2"}
                            <option value="0" >无权限</option>
                            <option value="1" >信息审核员</option>
                            <option value="2" selected>打款员</option>
                            <option value="3" >收款员</option>
                            {/if}
                            {if condition="$list.jurisdiction ==3"}
                            <option value="0" >无权限</option>
                            <option value="1" >信息审核员</option>
                            <option value="2" >打款员</option>
                            <option value="3" selected>收款员</option>
                            {/if}
                        </select>
                    </div>
                </div>
                {/if}
            </div>
            <center><button class="button bg-main icon-check-square-o" onclick="member_det({$list.id})"> 提交</button>   </center>
        </div>
    </div>
    </div>
</form>
</body>
<script>
    function member_det(a) {
        var name = $(" input[ name='name' ] ").val();
        var expresspoint = $(" input[ name='expresspoint' ] ").val();
        var jurisdiction = $(" input[ name='jurisdiction' ] ").val();
        if (name == "") {
            alert('账号不能为空');
            return false;
        }
        if (expresspoint == "") {
            alert('所属快递点不能为空');
            return false;
        }
        if (jurisdiction == "") {
            alert('权限不能为空');
            return false;
        }
        document.form1.action="adminupdata?id="+a;
        document.form1.submit();
    }
</script>
</html>